<template>
  <div class="App">
    <h2 ref='msg'>我是App组件</h2>
    <Student :msg='msg' :money='money'  />
  </div>
</template>

<script>
import Student from "./components/Student";

export default {
  name: "App",
  components: { Student },
  data() {
    return {
      msg: '我是大司马',
      money: 10000,
      // car:{
      //   name: '奥拓',
      //   price: 2000,
      //   age: 2
      // }
    }
  }
};
</script>

<style scope>
  .App{
    background-color: coral;
    padding: 30px;
  }
</style>